//此文件专门用来操作token

const key = "geek-itheima";

//设置
export const setToken = (token) => {
  localStorage.setItem(key, token);
};
//获取
export const getToken = () => {
  return localStorage.getItem(key);
};
//移除
export const removeToken = () => {
  localStorage.removeItem(key);
};
